package com.platform.modules.wallet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.platform.common.web.domain.BaseEntity;
import com.platform.modules.wallet.enums.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 红包表
 * </p>
 */
@Data
@TableName("wallet_red_packet")
@Accessors(chain = true) // 链式调用
public class WalletRedPacket extends Model<WalletRedPacket> {
    /**
     * 主键
     */
    @TableId
    private Long id;

    private String queryId;

    private Integer amount;

    private String name;

    private RedPacketTypeEnum type;

    private Integer count;


    private RedPacketStatusEnum status;

    private Long fromId;
    private Long toId;
    private String toIds;
    private Date createDate;
    private Date createTime;
    private Date successTime;
}
